<style>
  .layui-form-label{
    text-align: left;
  }
</style>
<title>用户查看</title>
  <div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
      <a lay-href="">主页</a>
      <a><cite>用户</cite></a>
      <a><cite>用户列表</cite></a>
      <a><cite>用户查看</cite></a>
    </div>
  </div>
  <div class="layui-fluid">
      <div class="layui-row layui-col-space15">
        <div class="layui-card">
        <div class="layui-card-header">用户查看</div>
        <div class="layui-card-body" style="padding: 15px;">
          <form class="layui-form" action="" lay-filter="component-form-group" >
            <div class="layui-form-item">
              <div class="layui-inline">
                <label class="layui-form-label required">姓名</label>
                <div class="layui-input-inline">
                  <input type="text" name="userName" disabled lay-verify="required|userName" autocomplete="off" placeholder="请输入姓名" class="layui-input">
                </div>
              </div>
              <div class="layui-inline">
                <label class="layui-form-label">登录名</label>
                <div class="layui-input-inline">
                  <input type="text" name="loginName" disabled lay-verify="required|loginName" autocomplete="off" placeholder="请输入登录名" class="layui-input">
                </div>
              </div>
            </div>
            <div class="layui-form-item">
              <div class="layui-inline">
                <label class="layui-form-label">部门</label>
                <div class="layui-input-inline">
                  <input type="tel" name="deptName" disabled lay-verify="deptName" placeholder="部门" autocomplete="off" class="layui-input">
                </div>
              </div>
            </div>
            <div class="layui-form-item">
              <div class="layui-inline">
                <label class="layui-form-label">联系电话</label>
                <div class="layui-input-inline">
                  <input type="tel" name="telNumber" disabled lay-verify="required|telNumber" placeholder="联系电话" autocomplete="off" class="layui-input">
                </div>
              </div>
              <div class="layui-inline">
              <label class="layui-form-label">微信</label>
              <div class="layui-input-inline">
                <input type="tel" name="weixinId" disabled lay-verify="weixinId" placeholder="微信" autocomplete="off" class="layui-input">
              </div>
             </div>
              <div class="layui-inline">
                <label class="layui-form-label">QQ</label>
                <div class="layui-input-inline">
                  <input type="tel" name="qqNumber" disabled lay-verify="qqNumber" placeholder="QQ" autocomplete="off" class="layui-input">
                </div>
              </div>
              <div class="layui-inline">
                <label class="layui-form-label">邮箱</label>
                <div class="layui-input-inline">
                  <!--lay-verify="required|email"-->
                  <input type="text" name="email" disabled placeholder="邮箱"  autocomplete="off" class="layui-input">
                </div>
              </div>
            </div>
            <div class="layui-form-item layui-form-text">
              <label class="layui-form-label">备注</label>
              <div class="layui-input-block">
                <textarea name="remark" placeholder="备注" class="layui-textarea" ></textarea>
              </div>
            </div>
            <div class="layui-form-item" style="text-align: right">
              <div class="layui-input-block">
                  <a lay-href="/user/user/list" class="layui-btn layui-btn-primary">
                    <i class="layui-icon layui-icon-return"></i>返回
                  </a>
              </div>
            </div>
          </form>
        </div>
        </div>
      </div>
  </div>

<script>
layui.use(['admin', 'form', 'laydate','common'], function(){
  var $ = layui.$,admin = layui.admin,element = layui.element
  ,layer = layui.layer
  ,laydate = layui.laydate
  ,common = layui.common
  ,form = layui.form;
  admin.req({
    url: common.basePath+'system/tsUser/findSUser.do' //实际使用请改成服务端真实接口
    ,data: {userId:layui.router().search.userId}
    ,type:'get'
    ,done: function(res){
      form.val("component-form-group",res.data);
    },success:function (res) {
    },error:function (res) {
    }});

});
</script>